﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace KYKJ.Monitor.Core.Communication.Structs
{
    /// <summary>
    /// 消息头
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
    public struct MessageHead
    {
        /// <summary>
        /// 头
        /// </summary>
        public byte[] Head;

        /// <summary>
        /// 地址信息
        /// </summary>
        public byte[] Adress;

        /// <summary>
        /// 数据类型
        /// </summary>
        public byte Type;

        /// <summary>
        /// 长度
        /// </summary>
        public UInt16 Length;
    }
}
